Skip to content

[Runtime Context] Implement a thread-level-singleton WASMRuntime#4283

Closed
lum1n0us wants to merge 1 commit intobytecodealliance:dev/runtime_instancefrom
lum1n0us:feat/thread_singleton
Closed

[Runtime Context] Implement a thread-level-singleton WASMRuntime#4283
lum1n0us wants to merge 1 commit intobytecodealliance:dev/runtime_instancefrom
lum1n0us:feat/thread_singleton

Conversation

@lum1n0us
Copy link
Copy Markdown
Contributor

Plan to replace process-level global variables with thread-local variables. The reason for not using the variable attribute __thread is due to concerns that it is a GCC extension and requires significant support from the linker (ld), dynamic linker (ld.so), and system libraries (libc.so and libpthread.so), making it not available everywhere.

Plus, memory initialization

@lum1n0us lum1n0us changed the title Implement a thread-level-singleton WASMRuntime [Runtime Context] Implement a thread-level-singleton WASMRuntime May 18, 2025
@lum1n0us lum1n0us marked this pull request as draft May 18, 2025 22:44
Plan to replace process-level global variables with thread-local variables.
The reason for not using the variable attribute `__thread` is due to
concerns that it is a GCC extension and requires significant support from the
linker (ld), dynamic linker (ld.so), and system libraries
(libc.so and libpthread.so), making it not available everywhere.

Plus, memory initialization
@lum1n0us lum1n0us force-pushed the feat/thread_singleton branch from 1a478a5 to 53973f0 Compare May 18, 2025 23:32
@lum1n0us lum1n0us closed this Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant